package com.zlp.spring.v5.config;

import com.zlp.spring.v5.entity.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanFactoryConfig {


    @Bean(name = "person")
    protected Person getBillInfo() {

        return new Person("bill", 45);
    }

    @Bean("myFactoryBean")
    protected MyFactoryBean getMyFactoryBean() {

        return new MyFactoryBean("30,init from factory");
    }

}
